home *** CD-ROM | disk | FTP | other *** search
/ Clickx 22 / Clickx 22.iso / DATA / Setup.exe / ForceASPI / RESTASPI.BAT < prev   
Encoding:
DOS Batch File  |  2000-09-03  |  2.8 KB  |  110 lines

  1. @Echo off
  2. SET ver=1.7
  3. IF %OS%==Windows_NT Goto WinNT
  4.  
  5. :Win9x
  6. CLS
  7. Echo RestASPI %ver%
  8. Echo.
  9. IF EXIST Win9xDUMP\frcASPI.txt Goto 9xDumpOK
  10.  
  11. :No9xDUMP
  12. Echo You do not have a Dumped ASPI Layer to restore.
  13. GOTO End
  14.  
  15. :9xDumpOK
  16. Echo Found a Dumped ASPI Layer.
  17. Echo Windows 9x or ME Detected.
  18. Echo Windows is in : %winbootdir%
  19. Echo Restoring Files...
  20.  
  21. Echo   * WINASPI.DLL
  22. IF EXIST Win9xDUMP\winaspi.dll copy Win9xDUMP\winaspi.dll %winbootdir%\system > nul
  23. IF NOT EXIST Win9xDUMP\winaspi.dll del %winbootdir%\system\winaspi.dll > nul
  24.  
  25. Echo   * WNASPI32.DLL
  26. IF EXIST Win9xDUMP\wnaspi32.dll copy Win9xDUMP\wnaspi32.dll %winbootdir%\system > nul
  27. IF NOT EXIST Win9xDUMP\wnaspi32.dll del %winbootdir%\system\wnaspi32.dll > nul
  28.  
  29. Echo   * ASPIENUM.VXD
  30. IF EXIST Win9xDUMP\aspienum.vxd copy Win9xDUMP\aspienum.vxd %winbootdir%\system > nul
  31. IF NOT EXIST Win9xDUMP\aspienum.vxd del %winbootdir%\system\aspienum.vxd > nul
  32.  
  33. Echo   * APIX.VXD
  34. IF EXIST Win9xDUMP\apix.vxd copy Win9xDUMP\apix.vxd %winbootdir%\system\iosubsys > nul
  35. IF NOT EXIST Win9xDUMP\apix.vxd del %winbootdir%\system\iosubsys\apix.vxd > nul
  36.  
  37. Echo Done!
  38. Echo.
  39. Echo Your Dumped ASPI Layer has been restored.
  40. Echo Reboot you PC to make the changes active.
  41. Goto End
  42.  
  43. :WinNT
  44. CLS
  45. Echo RestASPI %ver%
  46. Echo.
  47. IF %PROCESSOR_ARCHITECTURE%==x86 Goto Intel
  48. Goto Alpha
  49.  
  50. :Intel
  51. IF EXIST WinNTDUMP\frcASPI.txt Goto NTDumpOK
  52.  
  53. :NoNTDUMP
  54. Echo You do not have a Dumped ASPI Layer to restore.
  55. GOTO End
  56.  
  57. :NTDumpOK
  58. Echo Found a Dumped ASPI Layer.
  59. Echo Windows NT or 2000 Detected.
  60. Echo Windows is in : %windir%
  61. Echo Restoring Files...
  62. Echo   * WINASPI.DLL
  63. IF EXIST WinNTDUMP\winaspi.dll (
  64.   copy WinNT\winaspi.dll %windir%\system > nul
  65.   Echo     [ restored ]
  66. ) ELSE (
  67.   del %windir%\system\winaspi.dll > nul
  68.   Echo     [ no backup, therefore killed ]
  69. )
  70. Echo   * WOWPOST.EXE
  71. IF EXIST WinNTDUMP\wowpost.exe (
  72.   copy WinNT\wowpost.exe %windir%\system > nul
  73.   Echo     [ restored ]
  74. ) ELSE (
  75.   del %windir%\system\wowpost.exe > nul
  76.   Echo     [ no backup, therefore killed ]
  77. )
  78. Echo   * WNASPI32.DLL
  79. IF EXIST WinNTDUMP\wnaspi32.dll (
  80.   copy WinNT\wnaspi32.dll %windir%\system32 > nul
  81.   Echo     [ restored ]
  82. ) ELSE (
  83.   del %windir%\system32\wnaspi32.dll > nul
  84.   Echo     [ no backup, therefore killed ]
  85. )
  86. Echo   * ASPI32.SYS
  87. IF EXIST WinNTDUMP\aspi32.sys (
  88.   copy WinNT\aspi32.sys %windir%\system32\drivers > nul
  89.   Echo     [ restored ]
  90. ) ELSE (
  91.   del %windir%\system32\drivers\aspi32.sys > nul
  92.   Echo     [ no backup, therefore killed ]
  93. )
  94. Echo Done!
  95. Echo.
  96. Echo Your Dumped ASPI Layer has been restored.
  97. Echo Reboot you PC to make the changes active.
  98. Goto End
  99.  
  100. :Alpha
  101. Echo Alpha CPU Detected.
  102. Echo Sorry, only Intel x86 and compatible platforms are supported.
  103. Goto End
  104.  
  105.  
  106. :End
  107. SET ver=
  108. pause
  109. exit
  110.